// 导入静态路由
import { constantRoutes } from '@/router'
export default {
	state() {
		return {
			menuList: []
		}
	},
	mutations: {
		setMenuList(state, asyncRoutes) {
			// asyncRoutes  []  传过来的动态路由
			state.menuList = [ ...constantRoutes, ...asyncRoutes ]
		}
	},
	actions: {},
	getters: {},
	namespaced: true
}
